<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

<div class="clearfix" id="main">
  <div id="content">
    <div class="sessions">
      <div class="box">
        <div class="box_top"></div>
        <div class="box_content clearfix">
          <div class="new_user">
            <div class="login_header page_header clearfix">
              <h2 class="inline_block">注册</h2>
              <p class="inline_block"> or <a href="/login">登录</a> </p>
            </div>
            <div class="page_content">
              <div class="grid_6">
                <form action="/users/new" class="default" id="new_user" method="post">
                  <div style="margin:0;padding:0">
                    <input name="authenticity_token" type="hidden" value="yIUu3JUP2tOUDamOBuiR8hlSeZRzwBEZYTyUHz/43l0=">
                  </div>
                  <ul class="form_errors" style="">
                    <?php
				  foreach ($errors as $key => $value)
				  {
					  if (!empty($value))
					  {
						  echo "<li>".$value."</li>";
					  }
				  }
				  ?>
                  </ul>
                  <div class="field email_address text">
                    <label class="medium" for="email_address">邮箱</label>
                    <input class="input" id="email" name="email" size="30" type="text" value="<?php echo $form['email']; ?>">
                  </div>
                  <div class="field password password">
                    <label class="medium" for="password">密码</label>
                    <input class="input" id="password" name="password" size="30" type="password" />
                  </div>
                  <div class="field password_confirmation password">
                    <label class="medium" for="password_confirmation">确认密码</label>
                    <input class="input" id="password_confirm" name="password_confirm" size="30" type="password" />
                  </div>
                  <div class="field accept_terms check">
                    <input name="accept_terms" type="hidden" value="0" />
                    <input class="check" id="accept_terms" name="accept_terms" type="checkbox" value="1" checked="<?php echo $form['accept_terms']; ?>" />
                    <label for="accept_terms">我同意 <a href="/terms" target="_blank">服务条款</a></label>
                  </div>
                  <div class="buttons" label="false">
                    <input class="button form_btn signup button" id="submit" name="commit" type="submit" value="注册">
                  </div>
                </form>
              </div>
              <div class="grid_6 last"> </div>
            </div>
          </div>
        </div>
        <div class="box_bottom"></div>
      </div>
    </div>
  </div>
</div>

